let xml = 
      `
      <bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
      <bpmn2:process id="{id}" name="{name}">
        <bpmn2:startEvent id="StartEvent_01ydzqe" name="开始" />
      </bpmn2:process>
      <bpmndi:BPMNDiagram id="BPMNDiagram_1">
        <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process{id}">
          <bpmndi:BPMNShape id="StartEvent_01ydzqe_di" bpmnElement="StartEvent_01ydzqe">
            <dc:Bounds x="142" y="212" width="36" height="36" />
            <bpmndi:BPMNLabel>
              <dc:Bounds x="149" y="255" width="22" height="14" />
            </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
        </bpmndi:BPMNPlane>
      </bpmndi:BPMNDiagram>
    </bpmn2:definitions>`;
//     `
// ↵<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns: bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns: omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns: omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns: xsd="http://www.w3.org/2001/XMLSchema" xmlns: activiti="http://activiti.org/bpmn" targetNamespace="http://bpmn.io/schema/bpmn"><process id="process1" name="11" isExecutable="true" process_namespace="http://bpmn.io/schema/bpmn" process_id="http://bpmn.io/schema/bpmn">
// <startEvent id="StartEvent_01ydzqe" name="开始"><extensionElements><activiti: </extensionElements></startEvent>
// <userTask id="UserTask_0974wb2" name="提交人" multiinstance_type="1" approvetype="1" voteRule="1" consignable="1">
// <extensionElements><activiti: <activiti: <activiti: </extensionElements></userTask><sequenceFlow id="SequenceFlow_1habm3d" sourceRef="StartEvent_01ydzqe" targetRef="UserTask_0974wb2" />
// <userTask id="UserTask_0g49i5o" name="审批人" multiinstance_type="1" approvetype="5" approverolecode="ROLE_zztest1" approveusername="sysadmin" voteRule="1" consignable="1"><extensionElements><activiti: <activiti: <activiti: </extensionElements></userTask><sequenceFlow id="SequenceFlow_1lhkd17" sourceRef="UserTask_0974wb2" targetRef="UserTask_0g49i5o" />
// <endEvent id="EndEvent_1hzel80" name="结束"><extensionElements><activiti: </extensionElements></endEvent><sequenceFlow id="SequenceFlow_1tdrbnp" sourceRef="UserTask_0g49i5o" targetRef="EndEvent_1hzel80" /></process><bpmndi: <bpmndi: <bpmndi: <omgdc:Bounds x="142" y="212" width="36" height="36" /></bpmndi: BPMNShape > <bpmndi: BPMNShape id="BPMNShape_UserTask_0974wb2" bpmnElement="UserTask_0974wb2"><omgdc: </bpmndi: BPMNShape >
//  <bpmndi: BPMNShape id="BPMNShape_UserTask_0g49i5o" bpmnElement="UserTask_0g49i5o"><omgdc: </bpmndi: BPMNShape > <bpmndi: BPMNShape id="BPMNShape_EndEvent_1hzel80" bpmnElement="EndEvent_1hzel80"><omgdc: </bpmndi: BPMNShape > <bpmndi: BPMNEdge id="BPMNEdge_SequenceFlow_1habm3d" bpmnElement="SequenceFlow_1habm3d"><omgdi: <omgdi: </bpmndi: BPMNEdge > <bpmndi: BPMNEdge id="BPMNEdge_SequenceFlow_1tdrbnp" bpmnElement="SequenceFlow_1tdrbnp"><omgdi: <omgdi: </bpmndi: BPMNEdge >
//  <bpmndi: BPMNEdge id="BPMNEdge_SequenceFlow_1lhkd17" bpmnElement="SequenceFlow_1lhkd17"><omgdi: <omgdi: </bpmndi: BPMNEdge ></bpmndi: BPMNPlane ></bpmndi: BPMNDiagram ></definitions >`


export default {
  initTemplate: function (id, name) {
    return xml.replace(/{id}/g, id).replace(/{name}/g, name)
    //  return xml

  }
};
